package com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.service;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.bean.LimsQualitycontrolTestResultBean;
import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.service.GenericService;

public interface LimsQualitycontrolTestResultService extends GenericService<LimsQualitycontrolTestResultBean, Long> {
    String insertTestResult(RestJsonWrapperBean jsonWrapperBean);

    JSONObject getChosableProfessionalGroup(RestJsonWrapperBean jsonWrapperBean);

    Page<LimsQualitycontrolTestResultBean> selectDistinctRows(RestJsonWrapperBean wrapper);

    JSONObject saveToManageTable(RestJsonWrapperBean wrapper);

    JSONObject updateTestResult(RestJsonWrapperBean jsonWrapperBean);

    double selectAverageForHistory(String mainBatchCode, String controlMaterialLevel, String productName);

    double selectSDForHistory(String mainBatchCode, String controlMaterialLevel, String productName);

    JSONObject submit(RestJsonWrapperBean wrapperBean);

    JSONObject back(RestJsonWrapperBean wrapperBean);
}
